package com.skywolf.chem.manager.entity;

import com.skywolf.chem.common.excel.CellDefine;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by pei_pei on 2021/9/29.
 */
public class ReportUserListVo {
    public static final List<CellDefine> columns = new ArrayList<>();
    static {
        columns.add(new CellDefine("id", "报名编号"));
        columns.add(new CellDefine("name", "姓名"));
        columns.add(new CellDefine("phone", "电话"));
        columns.add(new CellDefine("idCard", "身份证"));
        columns.add(new CellDefine("groupName", "参赛组别"));
        columns.add(new CellDefine("createdTime", "报名时间"));
        columns.add(new CellDefine("startTime", "比赛时间"));
        columns.add(new CellDefine("payType", "交费方式"));
        columns.add(new CellDefine("price", "支付金额"));
        columns.add(new CellDefine("payStatus", "状态"));
    }

    private String id;
    private String name;
    private String phone;
    private String idCard;
    private String groupName;
    private String createdTime;
    private String startTime;
    private String payType;
    private String price;
    private String payStatus;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(String createdTime) {
        this.createdTime = createdTime;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        String str ="支付宝";
        if(payType==1){
            str ="微信";
        }
        this.payType = str;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        String str ="已报名";
        if(payStatus==101){
            str ="取消报名(待审批)";
        }
        if(payStatus==102){
            str ="已退款";
        }
        if(payStatus==103){
            str ="退款失败";
        }
        if(payStatus==104){
            str ="审核不通过";
        }if(payStatus==105){
            str ="未交费";
        }
        this.payStatus = str;
    }

}
